# 定义一个带有成员方法的类
class Student:
    name = None

    def say_hi(self):
        print(f"大家好，我是{self.name}，很高兴认识你们！")

    def say_hi2(self, msg):
        print(f"大家好，我是{self.name}，{msg}！")


stu1 = Student()
stu1.name = "李华"
stu1.say_hi()
stu1.say_hi2("请多多指教")